package com.ay.weixin.fdc.boss.share.domain;

import java.util.Date;


public class ShareActivity {
	
	private long id;
	
	private String name;
	
	private Date start;
	
	private Date end;
	
	private int status;
	
	private String reward;
	
	private String rules;
	
	private String type;
	
	private String face_pic_url;
	
	private String announcement;
	
	private Date announcement_time;
	
	private Date update_time;
	
	private String template;
	
	private long wxproject_id;
	
	public enum STATUS{
		 ABOUT_START(1,"未激活"),
		 ON_GOING(2,"正在进行"),
		 END(3,"已结束"),
		 PUBLISHED(4,"获奖已公布"),
		 CLOSED(5,"关闭");
	     private int value;
	     private String desc;
	     private STATUS(int value,String desc){
	    	 this.value=value;
	    	 this.desc=desc;
	     }
	     
	  
	     
	     public static STATUS getStatus(int status){
	    	 switch(status){
	    	 case 1:
	    		 return ABOUT_START;
	    	 case 2:
	    		 return ON_GOING;
	    	 case 3:
	    		 return END;
	    	 case 4:
	    		 return PUBLISHED;
	    	 case 5:
	    		 return CLOSED;
	    	 }
	    	 return ABOUT_START;
	     }
		
		public int getValue() {
			return value;
		}



		public void setValue(int value) {
			this.value = value;
		}

		public String getDesc() {
			return desc;
		}

		public void setDesc(String desc) {
			this.desc = desc;
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getStart() {
		return start;
	}
	
	public String getStart_str(){
		return start.toLocaleString();
	}

	public void setStart(Date start) {
		this.start = start;
	}

	public Date getEnd() {
		return end;
	}
	
	public String getEnd_str(){
		return end.toLocaleString();
	}

	public void setEnd(Date end) {
		this.end = end;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getAnnouncement() {
		return announcement;
	}

	public void setAnnouncement(String announcement) {
		this.announcement = announcement;
	}

	public Date getAnnouncement_time() {
		return announcement_time;
	}

	public void setAnnouncement_time(Date announcement_time) {
		this.announcement_time = announcement_time;
	}

	public String getAnnouncement_time_str(){
		if(announcement_time!=null)return announcement_time.toLocaleString();
		return "";
	}
	
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getFace_pic_url() {
		return face_pic_url;
	}

	public void setFace_pic_url(String face_pic_url) {
		this.face_pic_url = face_pic_url;
	}

	public String getReward() {
		return reward;
	}

	public void setReward(String reward) {
		this.reward = reward;
	}

	public String getRules() {
		return rules;
	}

	public void setRules(String rules) {
		this.rules = rules;
	}

	public long getWxproject_id() {
		return wxproject_id;
	}

	public void setWxproject_id(long wxproject_id) {
		this.wxproject_id = wxproject_id;
	}

	
	
	
}
